<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>时间戳</title>
	<script>
		// 1970 1 1 0 0 0


		// date1 = "2018-11-10";
		// date2 = "2018-11-20";

		// date1 = new Date();

		// console.log(date1);

		// date2 = new Date("2017-01-01 12:56:56");

		// console.log(date2.getSeconds());

		// console.log(date2.getTime()/1000);

		// console.log(date2);


		// 过的生日里面有多少个周二
		// 
		num = 0;

		for (var i = 1986; i <= 2018; i++) {
			b = i+"-10-25";
			bObj = new Date(b);
			if(bObj.getDay()==2){
				num++;
			}
		}

		document.write(num);




		// now  = new Date();

		// nowTime = now.getTime();

		// yundan = new Date('2018-01-01 0:0:0');

		// yundanTime = yundan.getTime();

		// num = 0;

		// for (var i = yundanTime; i <=nowTime; i+=86400000) {
		// 	meiDay = new Date(i);
		// 	if(meiDay.getDay()==0){
		// 		num++;
		// 	}
		// }

		// document.write(num);


	</script>
</head>
<body>
	
</body>
</html>